/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_label_inclusionDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;

    public T_test_label_inclusionDetachedCriteria() {
	super(
		org.testis.orm.classes.T_test_label_inclusion.class,
		org.testis.orm.classes.T_test_label_inclusionCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
    }

    public T_test_label_inclusionDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(
		aDetachedCriteria,
		org.testis.orm.classes.T_test_label_inclusionCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
    }

    public T_test_labelDetachedCriteria createContainerCriteria() {
	return new T_test_labelDetachedCriteria(createCriteria("Container"));
    }

    public T_test_labelDetachedCriteria createContaineeCriteria() {
	return new T_test_labelDetachedCriteria(createCriteria("Containee"));
    }

    public T_test_label_inclusion uniqueT_test_label_inclusion(
	    PersistentSession session) {
	return (T_test_label_inclusion) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_test_label_inclusion[] listT_test_label_inclusion(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_label_inclusion[]) list
		.toArray(new T_test_label_inclusion[list.size()]);
    }
}
